/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.agentslab.gameclient;

import com.agentslab.gameprovider.*;
import aa.core.Actor;
import aa.core.ActorName;
import aa.core.CommunicationException;
import aa.core.Contract;
import aa.tool.CyberOrgTuple;
import games.mapacman.client.MaPacman;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author mehadihasan
 */
public class Player extends Actor {

    Contract contract = null;

    public Player() {
        this.contract = new Contract(10000, 100, 1);
    }

    public void startGame(String[] args){
        if (args.length == 4) {
			new MaPacman(true, args[0], args[1], args[2], Integer
					.parseInt(args[3]));
		} else {
			new MaPacman(true);
		}
    }

    public Contract getContract() {
        return contract;
    }

    public void setContract(Contract contract) {
        this.contract = contract;
    }

    public void printGameList(CyberOrgTuple [] cyberOrgTuples) {
        
        for (CyberOrgTuple cyberOrgTuple : cyberOrgTuples) {
            System.out.println(cyberOrgTuple.getGameName());
        }

    }

    

  
}
